{include file="head" /}
<script>
    var pay_type = '';
    var wxpay_info = '';
    var returnrul = "/index/user/index.html";
</script>

<style>

    .scroll-content{
        overflow: scroll;
    }
    body{background-color:#081724;}
    .modal-open .modal, .modal-open .modal-backdrop{ pointer-events:auto}
    .modal2{
        bottom: 20%;
        min-height: 240px;
        width: 100%;

    }
    .withdraw{
        height: calc(100% - 40px);
        overflow-y: scroll;
        position: relative;
        z-index: 2;
        top: 40px;
        color: #fff;
        padding: 0 4px;
    }
    .draw-tit{
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 15px;
        border-radius: 5px;
        background:#131f30;
        font-size: 14px;
    }
    .select-box{
        display: flex;
        align-items: center;
    }
    .select-box select{
        color: #ddd;
        font-size: 14px;
        border: none;
        appearance: none;
        -moz-appearance: none;
        -webkit-appearance: none;
        background: transparent;
    }
    .select-box img{
        width: 15px;
        margin-left: 5px;
    }
    .withdraw .draw{
        padding: 0 15px;
        margin-top:15px;
    }
    .withdraw .draw-count span{
        margin-top: 15px;
        color:#2DB492;
        font-size: 12px;
    }
    .withdraw .draw-count .count{
        font-size: 18px;
        font-weight: bold;
        margin-top: 15px;
    }
    .withdraw .draw-list{
        height: auto;
        margin-top: 0;
    }
    .withdraw .draw-list li{
        height: auto;
        display: flex;
        flex-direction: column;
        margin-top: 15px;
        border-bottom: 1px solid #363636;
    }
    .withdraw .draw-list li:first-child{
        border-bottom: none;
    }
    .withdraw .draw-list li span{
        width: 100%;
        height: 17px;
        color:#2DB492;
        text-align: left;
        line-height: 1;
    }
    .item-info{
        display: flex;
        justify-content: space-between;
        margin-top: 5px;
        align-items: center;
    }
    .withdraw .draw-list li .item-info input{
        padding: 10px 0;
        height: auto;
        line-height: 1;
        font-size: 12px;
        margin-left: 0;
    }
    .withdraw .draw-list li .item-info em{
        color: #999;
        padding: 10px 0;
    }
    .item-info img{
        width: 20px;
        height: 20px;
    }
    .withdraw .draw-list li .count{
        font-size: 18px;
        color:#fff;
        margin-top: 15px;
    }
    .item-info .info-group em{
        font-size: 12px;
    }
    .t-gray{
        color: #999;
    }
    .t-green{
        color:#2DB492 !important;
    }
    .bold{
        font-weight: bold;
    }
    .draw-number{
        display: flex;
        margin-top: 15px;
        justify-content: space-between;
        align-items: center;
        color:#2DB492;
        font-size: 15px;
        font-weight: bold;
    }
    .btn-submit{
        margin-top: 44px;
        font-size: 15px;
        padding: 10px 0;
        display: block;
        width: 100%;
        background: #2DB492;
        color: #fff;
        border: none;
        border-radius: 5px;
    }
    .tips{
        font-size: 12px;
        color:#999;
        width: 90%;
        margin-left: 5%;
        margin-top: 20px;
        margin-bottom: 10px;
        padding-top: 10px;
        font-weight: bold;
    }
    .tips h5{
        font-size: 14px;
        color:#999;
        font-weight: bold;
    }
</style>

<body ng-app="starter" ng-controller="AppCtrl" class="grade-a platform-browser platform-ios platform-ios9 platform-ios9_1 platform-ready">



<!--<div class="nav-bar-block" nav-bar="active">
    <ion-header-bar class="bar-stable headerbar bar bar-header" align-title="center">
        <div class="title title-center header-item" style="transition-duration: 0ms; transform: translate3d(0px, 0px, 0px);">個人中心</div>
    </ion-header-bar>
</div>-->


<!--用户提现-->


<div class="modal-backdrop active modal-bank modal-withdraw">
    <div class="modal-wrapper" ng-transclude="">
        <ion-modal-view class="order-modal bank-info-modal slide-in-up modal2 ng-leave ng-leave-active" style="transition-duration: 300ms; transform: translate(0px) translateZ(0px);">
            <ion-header-bar class="order-modal-header bar bar-header">
                <h1 class="title" style="left: 54px; right: 54px;">用户提现</h1>
                <div class="close" onclick="javaScript:history.go(-1)">
                    <i class="icon ion-ios-arrow-left"></i>
                </div>
            </ion-header-bar>
            <div class="withdraw">
                <div class="draw-tit">
                    <span>当前币种</span>
                    <div class="select-box">
                        <select name="select_coin" id="select_coin" class="tc garyd ft28">
                            <option value="BTC" selected="">USDT</option>
                            <!--
                            <option value="ETH">ETH</option>
                            <option value="EOS">EOS</option>
                            <option value="USDT">USDT(ERC-2)</option>
                            <option value="ETC">ETC</option>
                            <option value="MOBI">MOBI</option>
                            -->
                        </select>
                        <img src="/static/public/images/arrow_down.png" alt="" class="ico_down ml10">
                    </div>
                </div>
                <div class="draw">
                    <div class="draw-count">
                        <span>可用</span>
                        <p class="count">$<em class="balance-num">{$userinfo.usermoney}	</em> <!--<em class="title">BTC</em>--></p>
                    </div>
                    <ul class="draw-list">
                        <!--<li>
                            <span>提现费率</span>
                            <input type="text" placeholder="提现费率" name="" class=""  readonly="readonly"
                                   value="1USDT=1  HKD">
                        </li>
                        <li>
                            <span>提现地址</span>
                            <input type="text" placeholder="输入或长按粘贴地址" name="t_url" class="t_url"
                                   value="">
                        </li>
                        <li>
                            <span>提现金额</span>
                            <input type="text" placeholder="最小提现10USDT"  class="price" value="" name="price">
                        </li>
                        <li>
                            <span  style="">提现USDT数</span>
                          <input type="number" placeholder="0"  class="t_num" readonly="readonly">
                          <input type="number" placeholder="最小提現數量0.033261820419432"  class="t_num" readonly="readonly">
                        </li>-->
                        <li>
                            <span>提现地址</span>
                            <div class="item-info">
                                <input type="text" placeholder="输入或长按粘贴地址" name="t_url" class="t_url"
                                       value="">
                                <!--
                                  <img src="http://qklys.dshuj.cn/public/home/images/scan2.png" class="w50 scan">
                                -->
                            </div>
                        </li>
                        <li>
                            <span>提现金额</span>
                            <div class="item-info">
                                <input type="text" placeholder="最小提现100"   class="price" name="price" />
                                <div class="info-group">
                                    <em class="t-gray">USDT</em>
                                    <em class="t-green">|</em>
                                    <em class="t-green bold all">全部</em>
                                </div>
                            </div>
                        </li>
                        <!--
                        <li>
                          <span>手续费</span>
                          <div class="item-info">
                            <em>0.5%</em>
                          </div>
                        </li>
                        -->
                    </ul>

                    <!--
                    <div class="draw-number">
                      <p>提现BTC数</p>
                      <p><input type="number" placeholder="0"  class="t_num" readonly="readonly" value="" style="color:#fff"></p>
                    </div>
                    -->

                    <button type="button" class="btn-submit button-balanced" >确定</button>

                    <div class="tips">
                        <h5>温馨提示：</h5>
                        <p>1、请填写正确的提币地址 ，错误地址无法找回币。</p>
                        <p>2、恶意提交无效提币申请将封禁账号。</p>
                    </div>

                </div>
                <!--<div class="button-bar">
                    <a class="button button-balanced" >确定</a>
                    <a class="button button-dark" onclick="javaScript:history.go(-1)">关闭</a>
                </div>-->
            </div>

        </ion-modal-view>
    </div>

</div>
<script src="/static/index/js/lk/user.js?s=159316936512312312"></script>
<script>
    $(".all").click(function(){
        $(".price").val($(".balance-num").html());
    })

    var min_cash= 100;
    var max_cash=9999999;

    $(".modal-bank .price").focus(function(){

        var t_url=$(".modal-bank .t_url").val();
        if(!t_url){
            layer.msg("请填写提现地址");
            $(" .modal-bank .t_url").focus();
            $(" .modal-bank .button-balanced").removeAttr("onclick");
            $(".modal-bank .button-balanced").css('background','#929296');
            return false;
        }

    });


    $(" .modal-bank .price").bind("input  propertychange",function(){

        var cash_num=$(".modal-bank .price").val();

        $(".modal-bank .t_num").val((cash_num/1).toFixed(4));

        if(cash_num < min_cash)
        {
            layer.msg("最小提现金额不能小于"+min_cash);

            $(".modal-bank .price").focus();
            $(".modal-bank .button-balanced").removeAttr("onclick");
            $(".modal-bank .button-balanced").css('background','#929296');
            return false;
        }

        if(cash_num >max_cash)
        {
            layer.msg("最大提现金额不能大于"+max_cash);
            $('.modal-bank .price').val('');
            $(".modal-bank .t_num").val('');
            $(".modal-bank .price").blur();
            $(".modal-bank .button-balanced").removeAttr("onclick");
            $(".modal-bank .button-balanced").css('background','#929296');
            return false;


        }




        $(".modal-bank .button-balanced").css('background','#e42112');
        $(".modal-bank .button-balanced").attr("onclick","out_withdraw()");

    });

</script>
</body></html>